Tag: 
-
Method of Linux entering graphical interface
installIf there is a graphical interface, start Linux and input: startx operationInterface.If you want it every timeAutomatically enter xwindos。。inittabDocuments.vi /etc/inittabfindid:3:initdefault:This lineiEnter edit mode,Change 3 to 5。escExit editing.qw—Input includes’: ‘Multi user modeReplace with: id:3:initdefault: #1 – single user mode / / single user mode#2 – multiuser, without NFS (the same as 3, if you do not have Networking) […]
-
Configuring Apache virtual host instance for Linux system
installapache,php: yum install httpd php Suppose the IP address of the VPS is 58.130.17.168, and there are two domain names pointing to the IP address, domain1.1 com, domain2. com, Modify / etc / httpd / conf / httpd Conf, add at the end of the file: ServerName 58.130.17.168 NameVirtualHost 58.130.17.168 <VirtualHost 58.130.17.168> ServerName domain1.com […]
-
How to increase swap partition
# dd if=/dev/zero of=/. Swapf BS = 1024 count = 102400 #bs, 512 by default, and KB by default; # mkswap /.swapf # swapon /.swapf#Swap on – s # displays the status of swap attachment;Edit / etc / fstab:/.swapf swap swap defaults 0 0For example, it has been divided into / dev / sda7 and […]
-
Installing Chenqiao Wubi input method under Linux
be careful:systemessentialinstallChinput input method, otherwise you can’t use the intelligent Chen bridge. 1. First download Chinput and chznwb (smart Chen bridge)installPackage: # wget http://www.alinux.cn/upload/chznwb.tar # wget http://www.alinux.cn/upload/Chinput-3.0.2.src.rpm 2.installChinput (if yousystemalreadyinstallIf it is used and can be used, skip!) # rpm -ivh Chinput-3.0.2.src.rpm theninstallchznwb.tar # tar xvf chznwb.tar […]
-
Linux system modifies the size of pictures in batches with commands
Taking photos often requires reducing the size of a large number of photos to facilitate online transmission or storage. Here is a simple methodmethodChange a large number of photos to the specified size find ./ -name ‘*.jpg’ -exec convert -resize 600×480 {} {} \; Note the space and the last semicolon. The […]
-
Installation and configuration of shorewall firewall under Linux
Environment Description: This machine has only one network card and uses static IP to surf the Internet Command: apt get install shorewall Ubuntu will automatically give youinstallOK, but shorewall is not configured or started 【1】 First, CP / usr / share / Doc / shorewall / examples / one interface / * / […]
-
Initramfs error after kernel upgrade. Problem solved
The prompt that initramfs cannot find / root / host or 437 or VFS appears: 1. If root The disk is on the FAT32 partition, so the kernel option should incorporate the fat related and font 437 into the kernel, and select y. 2. If Ubuntu has been installed before, after upgrading the […]
-
Solution for Linux user forgetting password
Grub: on the boot loader menu, type [e] to enter edit mode. You will face a list of guided projects. Find a sentence line similar to the following output: kernel /vmlinuz-2.4.18-0.4 ro root=/dev/hda2 Press the arrow keys until the line is highlighted, and then press [e]. You can now leave a space at the […]
-
SSH cannot start on Linux system
Log in directly on the machine, and the problem is shown as follows: /var/empty/sshd must be owned by root and not group or world-writable. Question: SSH on Linux cannot start Report / var / empty / sshd must be owned by root and not group or world writable solveway: First, […]
-
How does Apache prohibit IP access
How to make the web server built with Apache accessible only through the set domain name, but not directlyserviceThere are two IP addresses to access the devicemethodCan be achieved (limited to what I know, of course, there will be others)methodCan be implemented), which is to modify httpd Conf file, as illustrated below. method1: In httpd […]
-
Apache installation, configuration and optimization
installApache 2.0.48 (see the install manual) Considering the need to rewite in the future_ URL makes it easier for Google to include websites, and mod is specially added_ rewrite 。 At the same time, in order to limit the flow, mod is specially added_ limitpcnn. C patch, so there is an — enable forward option. […]