PIXNET Logo登入

經驗交流分享與備忘

跳到主文

感情最痛恨 劈腿. 背叛 與 欺騙

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 10月 15 週一 201815:49
  • Ubuntu 18.04 安裝中文輸入法

在Linux桌面需要輸入中文卻沒有中文輸入法的時候是很頭痛的事情
這邊分享如何安裝中文輸入法?
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(4,926)

  • 個人分類:Linux相關應用
▲top
  • 3月 16 週三 201618:46
  • [轉貼] 用xl2tpd建立L2TP协议的VPN连接

在Linux中用xl2tpd建立L2TP协议的VPN连接需要两个配置文件,一个是给xl2tpd的配置文件,一个是给pppd的配置文件(xl2tpd会调用pppd)。
    为说明方便,我们假设我们要建立的VPN连接的名字为testvpn,连到的l2tp服务器地址为xxx.xxx.xxx.xxx,用户名为someone,密码为passwordstring。那么该xl2tpd的配置文件应该如下所示:
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(796)

  • 個人分類:Linux相關應用
▲top
  • 1月 19 週二 201610:52
  • [轉貼] 設定 vsftpd 為 passive mode.


To configure passive mode for vsftpd you need to set some parameters in vsftpd.conf.
pasv_enable=Yes
pasv_max_port=10100
pasv_min_port=10090

This enables passive mode and restricts it to using the eleven ports for data connections. This is useful as you need to open these ports on your firewall.
iptables -I INPUT -p tcp --destination-port 10090:10100 -j ACCEPT

If after testing this all works then save the state of your firewall with
service iptables save

which will update the /etc/sysconfig/iptables file.
To do this is CentOS 7 you have to use the new firewalld, not iptables:
Find your zone:
# firewall-cmd --get-active-zones
public
interfaces: eth0

My zone is 'public', so I set my zone to public, add the port range, and after that we reload:
# firewall-cmd --permanent --zone=public --add-port=10090-10100/tcp
# firewall-cmd --reload

What happens when you make a connection


  • Your client makes a connection to the vsftpd server on port 21.




  • The sever responds to the client telling it which port to connect to from the range specified above.




  • The client makes a data connection on the specified port and the session continues.




  • There is a great explanation of the different ftp modes here.
    本文轉貼自 http://serverfault.com/questions/421161/how-to-configure-vsftpd-to-work-with-passive-mode
     
    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(2,554)

    • 個人分類:Linux相關應用
    ▲top
    • 3月 10 週二 201516:26
    • [轉貼] 在Ubuntu 13.04左侧启动栏中添加应用程序启动图标,以Eclipse为例


    在Ubuntu 13.04系统中(其它版本的也大概是),有个管理应用程序图标的文件夹:/usr/share/applications
    在这个文件夹里,包含了ubuntu自带的所有程序的图标,后缀都是.desktop.
    默认的ubuntu系统桌面已经有几个应用程序的图标,如果你还想要将其它程序放到这个启动栏里,就直接从/usr/share/applications文件夹里用鼠标拖到启动栏里。

    如果不是系统自带的程序呢,比如Eclipse,自己后来安装的。
    步骤很简单,首先,当然是在/usr/share/applications中建立一个eclipse.desktop(其它应用程序就是xxx.desktop)
    $sudo gedit /usr/share/applicaions/eclipse.desktop
    打开编辑框,之后输入下面的图标定义:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Eclipse Platfrom
    Comment=Eclipse IDE
    Exec=/home/ling/Software/eclipse/eclipse  //这个是你的Eclipse文件夹下eclipse.exe的路径
    Icon=/home/ling/Software/eclipse/icon.xpm //Eclipse文件夹下图标icon.xpm的路径
    Terminal=false
    StartupNotify=true
    Type=Application
    Categories=Application;Development;

    保存退出,在执行命令,将其可执行:
    $sudo chmod u+x /usr/share/applicaions/eclipse.desktop
    如果你编辑的.desktop文件没有语法错误(出现打错字或者空格,换行不对之类的),当你再打开/usr/share/applicaions时,搜索ecli*,就能看到eclipse图标,名称为“Eclipse Platform"了。
    如果要把它放到左侧启动栏,方法就是从这个文件夹拖进去 。


    当然,也许你想要把应用程序的图标放到桌面上(不排除有人喜欢windows的桌面),那就把.desktop文件从/usr/share/applicaions拷贝到~/Desktop下,然后它们就一个个的在桌面上了。
     
    本文轉貼自 http://blog.csdn.net/myself_way/article/details/17150585
     
     
    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(47)

    • 個人分類:Linux相關應用
    ▲top
    • 6月 17 週二 201415:29
    • [轉貼] freebsd--讓 ls 在本機及遠端登入都可以顯示出顏色

    預設的 FreeBSD 中 ls 是沒有顏色的,這樣對檔案的操作及維護都會有不小的困擾 。 

    如果你是系統管理者 
    可以修改 /etc/csh.cshrc 來讓系統管理者使用相同的設定 
    但是如果你是一般使用者就修改家目錄中的 .cshrc
    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(845)

    • 個人分類:Linux相關應用
    ▲top
    • 5月 27 週二 201415:40
    • FreeBSD multicast routing

    multicast routing
    By default IPv6 multicast routing is disabled, so you have to explicitly configure it in rc.conf.

    Currently there are two IPv6 multicast routing daemons available in package or ports (pim6sd = PIM-SM and pim6dd = PIM-DM), but please keep in mind that they are not installed in FreeBSD-RELEASE by default due to its licensing issue.
    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(912)

    • 個人分類:Linux相關應用
    ▲top
    • 5月 27 週二 201415:22
    • FreeBSD Configure IPv6 Networking / Static IP Address



    How do I configure IPv6 networking under FreeBSD 7.x server? How do I assign IPv6 IP address using command line utility?

     
    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(859)

    • 個人分類:Linux相關應用
    ▲top
    • 5月 20 週二 201416:18
    • How to set static IP address on the FreeBSD machine?

    I have a FreeBSD machine running on a virtual machine. I am using SUN Virtual Box. I need to set static IP address to this machine. So that I can access this machine. Is there anyway to do this ?

    in /etc/rc.conf:
    ifconfig_em0="inet 192.168.0.254 netmask 255.255.255.0"
    defaultrouter="192.168.0.1"
    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(582)

    • 個人分類:Linux相關應用
    ▲top
    • 4月 22 週二 201418:45
    • [轉貼] 簡單使用 tshark 命令形的 wireshark tcpdump

    命令形的 wireshark,有同 tcpdump
    man tshark
    捕包樹狀解析
    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(10,054)

    • 個人分類:Linux相關應用
    ▲top
    • 3月 03 週一 201416:08
    • [轉貼] VirtualBox On FreeBSD


    You probably know the situation: You love FreeBSD, you love ZFS as a filesystem (maybe even as the root filesystem?), but when it comes to virtualisation, FreeBSD users don't have a lot of choice.
    That said, VirtualBox, which runs on quite a few platforms and is free, does perform rather well and offers many features, which most people aren't aware of: iSCSI support, Teleporting (aka live migration, even cross-platform), Virtio Net support, Ballooning, built-in solid VNC support (better than Xen's!), highly configurable device support (from disk controller types over chipsets and NICs).

    (繼續閱讀...)
    文章標籤

    本熊 發表在 痞客邦 留言(0) 人氣(479)

    • 個人分類:Linux相關應用
    ▲top
    12»

    參觀人氣

    • 本日人氣:
    • 累積人氣:

    文章分類

    toggle 作業系統相關 (9)
    • FreeBSD (8)
    • IPv6 Logo (2)
    • Visual C# (1)
    • Visual C# (1)
    • Mac使用心得 (5)
    • Synology NAS應用 (0)
    • 系統應用 (49)
    • 防毒防駭 (5)
    • 系統安裝 (30)
    toggle 投資理財 (2)
    • 科技產業 (8)
    • 投資學習 (9)
    toggle 網頁設計相關 (6)
    • Flex程式設計 (5)
    • MySQL資料庫 (13)
    • ASP.NET程式設計 (1)
    • CSS樣式表應用 (5)
    • Flex (1)
    • PHP程式設計 (51)
    • Perl 程式設計 (1)
    • Windows系統應用 (2)
    • 好書推件 (1)
    • Android程式設計 (10)
    • C程式設計 (2)
    • Linux相關應用 (18)
    • Java程式設計 (6)
    • JAVAt程式設計-GWT (7)
    • Eucalyptus XEN (2)
    • 喻道故事 (1)
    • 下載資源 (2)
    • 終生學習 (7)
    • Goolge 新玩意 (1)
    • 英文學習心得 (3)
    • 工商服務 (12)
    • 勵志成長 (18)
    • 新聞時事 (17)
    • 讀者服務 (3)
    • JavaScript (22)
    • 省錢大作戰 (15)
    • 搶錢大作戰 (2)
    • 趣味分享 (50)
    • 感情生活 (15)
    • 用DSLR寫日記 (20)
    • 程式設計 (7)
    • 職場人生 (16)
    • 健康生活 (63)
    • 未分類文章 (1)