Category the Archives: the Linux

A bunch of Tips (3)

Continues today on the topic of ssh, the frog would have wanted this topic on today to speak with yesterday, but the Tip of these two are quite related, and finally decided to separate said. In the usual online process, you may encounter a server (we call him S) can not be accessed. However, if a host (called P) can access to the S, and we have P above the ssh permissions, then the P as a springboard for direct access to the S Assume that S above the http (80) To access the service, then execute the following command: ssh the user @ address of P-L 8080: S Address: 80 This command will open port 8080 on the local connection will be forwarded to port 80 of the S , so that to achieve the purpose of direct access from the local S. In fact, the ssh-L parameter is used to establish a secure tunnel between a client to the server, in order to secure the transmission of data.

Tagged , | 评论关闭 Posted in Linux | Tagged , | Comments Off

A bunch of Tips (2)

Tip theme is the ssh. Often asked, why the ssh in Linux so difficult to use it, you can not something like secureCRT as address book. The answer is, and does not require other software, the ssh their own will be able to get. To achieve this function, first in the ~ / ssh inside the establishment of a config file, and set 600 permissions. touch, ~ / .ssh / config chmod 600 ~ / .ssh / config file by adding the following content (for example 10.1.1.1) Host 1 # specify a host name, the name can be taken on their own convenience, you can designated host IP HostName 10.1.1.1 # 10.1.1.1 User aaa # default login user name Port 22 # on the host sshd port number, access to 10.1.1.1 directly execute # the ssh 1 can be very convenient . ... Continue reading

Tagged , | 评论关闭 Posted in Linux | Tagged , | Comments Off

A bunch of Tips (1)

Frogs leave soon, mixed in Neusoft three years, accumulated in the work of some of the tips. Is estimated that these skills to other companies basically use less. Records to facilitate the later people. The frog ready to sub a few days finished, every day a small Tips. Say today is the password of the IPsec VPN. Engaged in security sector natural characteristics of the security sector, all servers need to dial a VPN in order to access. Windows of children's shoes are very happy, the first connection, enter the account password, and then choose to save the password, the next time you can log in directly. But shoes Linux is too much trouble, the department Raiders way, every time to enter a password. The frog in the ipsec.conf (5) inside to find a solution to the problem. First you want to edit the / etc / work the ipsec.conf conn left = 10.xxxxx leftnexthop = 10.xx1 leftid = "C = cn, ST = liaoning O = neusoft, OU = nsd CN = xxx_l / to emailAddress = xxx_l neusoft . com "leftcert = cert.pem leftxauthclient = yes leftmodecfgclient = yes leftxauthusername = xxx_linux modecfgpull = no right = 10.xx254 rightsubnet = 10.xxx.x.0/24 rightxauthserver = yes rightmodecfgserver = yes rightid =" C = cn, ST = liaoning O = neusoft, OU = nsd, CN = vpnser, E = vpnser@neusoft.com the "auto = the add the Note leftxauthusername = line of xxx_linux, key in here, this sentence is the designation of this vpn connection with user name. And then edit the / etc / the ipsec.secrets: RSA / etc / ipsec.d / private / key.pem xxx_linux: XAUTH "password" _AT_ xxx_linux: XAUTH "password" line specifies the user name corresponding to the password. Modify these two files, the next time you connect to the VPN will connect automatically. PS. / Etc / the ipsec.conf there is a the auto = add, add this sentence, you can use # the ipsec ... Continue reading

Tagged , | 评论关闭 Posted in Linux | Tagged , | Comments Off

To test the linux startup speed

See the blog a saying ubuntu9.04 was able to start within 14 seconds. So the frog to get bootchart test of the debian. Frog with its own system for 33 seconds, which have the time to start vmware and virtualbox services, as well as start ntfs-3g, lighttpd, transmission, wicd, compared to his results were not too bad. Wicd is written in python, load is actually relatively time-consuming, but the customization of the network-manager is not, do not know there is no similar software can be replaced. In addition, the bootchart loaded before the period of time should be the kernel is loaded, it seems that frogs should continue to streamline its core the job. The way to record what bootchart use. Is also very simple to say, the system is divided into three steps. Installed bootchart, configure the bootloader, such as the grub kernel options inside with an: init = / sbin / bootchartd. The restart bootchart to be launched in the background records information, the default is stored in / var / log / bootchart.tgz. Finished starting up, the Run the bootchart command, it will start into following this chart.

评论关闭 Posted in Linux | Comments Off

Eva in debian sid above installation

Since the frog character outbreak, after the the pidgin above life and death login on the QQ, frogs are in the wine above ran QQ wine above the speed slow, QQ from time to time to look at illegal operation put the frog torture tough battle. Said recently eva upgraded, so the frog decided to change with eva. Debian's apt which is not eva. Frog Internet search in a circle, also did not find the upgrade package eva, even on its home page are still a long time ago version (probably eva has been transferred to the ground floor). Frog last source of ubuntu which finally turned over eva's deb package. eva in ubuntu source of the universe inside, casually looking for a ubuntu mirror (frog is the source of USTC), to find eva_0.4.9 + svn20080215-0ubuntu1_i386.deb / pool / universe / e / eva directory, download back set aside. Before the formal installation eva, frogs should get its dependencies. ubuntu inside the eva depends on kdelibs4c2a this package. Kdelibs4c2a debian inside a dependency bug: it depends on the package libopenexr2ldbl, but this package is not even in debian i386 source inside. So the frog from the ubuntu source libopenexr2ldbl to come back again, dpkg-i install and then run # aptitude the install kdelibs4c2a install a series of dependent packages. Incidentally, these two brothers with ubuntu, the debian sometimes really good, with each other who do not pick who deb package in general can take over the direct use. Finally, run # dpkg-i eva_0.4.9 + svn20080215-0ubuntu1_i386.deb, eva a successful installation. Chat to go also ~

评论关闭 Posted in Linux | Comments Off