How do you list the network open ports on your server and the process that owns them? The answer is simple use the following command (must run as root):
sudo lsof -i
sudo netstat -lptu
sudo lsof -i
sudo netstat -lptu
setsebool -P ftp_home_dir 1# yum install vsftpd# vi /etc/vsftpd/vsftpd.confxferlog_std_format=NOlog_ftp_protocol=YESchroot_local_user=YESbanner_file=/etc/vsftpd/issue# chkconfig vsftpd on# service vsftpd start
# netstat -tulpn | grep :21# vi /etc/sysconfig/iptables-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT# vi /etc/sysconfig/iptables-configIPTABLES_MODULES="OTHER_MODULES ip_conntrack_ftp"# service iptables restart# tail -f /var/log/vsftpd.loglocal_enable=NOwrite_enable=NOplatform/ to the root level$NCBI is setlib/*.mk to root levelcd lib && make lib$NCBI, $SLRI, $ODBC, and $BZDIRValNodeUnique in seqhound/include/intrez_misc.h and seqhound/src/intrez_misc.ccd seqhound && ./makeallsh odbc all#grub-md5-crypt
Password:
Retype password:
$1$NYoR71$Sgv6pxQ6LG4GXpfihIJyL0
# vi /boot/grub/menu.lst (Red Hat /boot/grub/grub.conf)password --md5 $1$NYoR71$Sgv6pxQ6LG4GXpfihIJyL0default 0
timeout 5
password --md5 $1$NYoR71$Sgv6pxQ6LG4GXpfihIJyL0
title Debian GNU/Linux, kernel 2.6.13.4-cust-en-smp
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda3 ro
savedefault
bootskill -STOP -u username Pause somebody.skill -KILL -u username Kick out somebody.skill -KILL -v /dev/pts/* Kick all out.last show successful loginslastb show bad loginslastlog show latest logins of all/any users./var/log/btmp bad logins/var/log/wtmp successful logins/var/run/utmp current logins# date -s "2 OCT 2006 18:00:00"# date --set="2 OCT 2006 18:00:00"# date +%Y%m%d -s "20081128"# date +%T -s "10:13:13"/sbin/lspci/sbin/lsusblshwroute -n/etc/resolv.conf, check or add line nameserver x.x.x.xwget -q url -O - | cat > abc.txt/etc/default/grub & run update-grub to set the booting preferences
/etc/apt/sources.list to your satisfaction.vimxserver-xorggnome-coregdmgnome-themes-selectedhumanity-icon-themegcalctool (the calculator)chromium-browsergnome-screensaverflashplugin-installerlanguage-support-??network-managernetwork-manager-openconnect (for Cisco AnyConnect VPN)*winevlockg++openjdk-6-jreqt4-dev-tools*dia*mysql-server*mysql-admin*python-mysqldbvinagre (the client)vino (the server)vlcmozilla-plugin-vlclibdvdcss2ubuntu-restricted-extrassystem-config-printer-gnomecups*smbclient (for Windows shared printing)*hplip (HP printer drivers)~/.bash_logoutclear/etc/init/control-alt-delete.confsudo chmod 640 `sudo find /var -name ?tmp`/etc/init/gdm.conf/etc/default/grubupdate-grub/etc/mysql/my.cnfsudo dpkg-reconfigure mysql-server-5.1libclucene-dev.g++zlib1g-devcmakecmake <clucene-source-folder>.ccmake <clucene-source-folder> to turn on static library build.INT_MAX in file src/core/CLucene/search/spans/TermSpans.cpp, insert #include <limits.h> at the beginning of that file.
((XhtmlTextConstruct) entry.getTextContent().getContent()).getXhtml().getBlob()entry.getTextContent().getContent().getPlainText().XmlBlob newBlob = new XmlBlob();
newBlob.setBlob(updatedXml);
entry.setContent(new XhtmlTextConstruct(newBlob));
entry.update();
System.out.println("Updated " + getEntryId(entry.getId()));List<ContentFeed> feeds = new LinkedList<ContentFeed>();
int startIndex = 1;
while (true) {
q.setStringCustomParameter("start-index",
String.valueOf(startIndex));
ContentFeed contentFeed = client.query(q, ContentFeed.class);
int entrySize = contentFeed.getEntries().size();
if (entrySize > 0) {
feeds.add(contentFeed);
startIndex += entrySize;
System.out.println(getEntryId(contentFeed.getEntries().get(0).getId()));
} else {
break;
}
}private byte[] getData(String url) {
MediaContent mc = new MediaContent();
mc.setUri(url);
MediaSource msrc;
try {
msrc = client.getMedia(mc);
InputStream in = msrc.getInputStream();
return org.apache.commons.io.IOUtils.toByteArray(in);
} catch (Exception e) {
return null;
}
}private byte[] getData(String url) {
try {
ILink link = new com.google.gdata.model.atom.Link("alternate", null, url);
GDataRequest req = client.createLinkQueryRequest(link);
req.execute();
InputStream in = req.getResponseStream();
return org.apache.commons.io.IOUtils.toByteArray(in));
} catch (Exception e) {
return null;
}
}http://sites.google.com/site/siteName/path/to/the/page):
ContentQuery query = new ContentQuery(new URL(buildContentFeedUrl()));
query.setPath("/path/to/the/page");
ContentFeed contentFeed = client.getFeed(query, ContentFeed.class);
for (BaseContentEntry entry : contentFeed.getEntries()) {
// do something with the entry
}
sudo yum update!sudo yum install kmod-nvidia-PAEsudo yum install kmod-wl-PAEvpn.mit.edu. (Yes, it simply works)sudo yum install evolution-mapi (it seems it doesn't work in my case)sudo yum install evolution-exchangesudo yum install flash-pluginsudo yum install alacarte # menu editorsudo yum install diasudo yum install picasasudo yum install unrarsudo yum install pitivi # video convertersudo yum install google-chrome-stablesudo yum install nmapsudo yum install ettercap-gtksudo yum install wireshark-gnomesudo yum install xiphos # the Holy Biblehttp://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo./etc/yum.repo.d/. Then:sudo yum install dkmssudo yum install kernel-PAE-sourcesudo yum erase kernel-sourcesudo yum install gcc-c++sudo yum install VirtualBox-3.2sudo /etc/init.d/vboxdrv setupvboxusers group.SiteFeedhttps://sites.google.com/feeds/site/<domain-name>/ContentFeedhttps://sites.google.com/feeds/content/<domain-name>/<site-name>/<content-id>/ManagementFeedhttps://www.google.com/analytics/feeds/datasources/ga/accountshttps://www.google.com/analytics/feeds/datasources/ga/accounts/~all/webpropertieshttps://www.google.com/analytics/feeds/datasources/ga/accounts/~all/webproperties/~all/profilesDataFeedhttps://www.google.com/analytics/feeds/data