LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

OpenBSD-STABLE Automated build script: 2

Posted 12-02-2014 at 06:18 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)

New and improved, with X included.

Code:
#!/bin/sh

set -e

export LOGFILE=/var/log/build_stable.log
export ARCH=`machine`

# DEFAULT: BUILD -STABLE (UPGRADE TO LATEST -RELEASE FIRST!!)
export BUILDVER=OPENBSD_`uname -r | tr '.' '_'`

cat > ${LOGFILE} << EOF


STABLE BUILD - `date` - `uname -a`


EOF

echo "Retrieving/Updating Sources for src ${BUILDVER}"
...
Member
Posted in Uncategorized
Views 120 Comments 0 rocket357 is offline
Old

Bash scrippet to extract all eth* addresses from /etc/network/interfaces

Posted 12-02-2014 at 09:03 AM by catkin

I looked for such a script on the 'net and did not find so here's a solution, tessted with the edge case of an address line at the end of the file:
Code:
#!/bin/bash

eth_regex=^eth

true=true
false=

address=
have_iface_flag=$false
while read -r word1 word2 word3 word4 _
do
    case $word1 in  
         iface )
             [[ $word2 =~ $eth_regex && $word4 != dhcp ]] \
...
LQ 5k Club
Posted in Uncategorized
Views 67 Comments 0 catkin is offline
Old

Adding [code][/code] tags to your posts

Posted 12-02-2014 at 07:23 AM by rtmistler
Updated 12-16-2014 at 01:45 PM by rtmistler

In LQ it is beneficial to use [code][/code] tags around your code.

All you need to do is to border your code with the [code][/code] tags and the result will appear as following:
Code:
#include <stdio.h>

int main()
{
 ...
}
In Advanced edit mode the # icon will assist you with this.

Posters can also edit a prior post to fix this and make things more clear.

It will help to separate code from your questions and comments....
Senior Member
Posted in LQ Information
Views 80 Comments 0 rtmistler is offline
Old

Slackware-14.1-Polipo 1.0.4.1 Polipo_User

Posted 11-30-2014 at 06:25 PM by arniekat

Source - http://www.pps.univ-paris-diderot.fr...ftware/polipo/

Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy, a proxy server) designed to be used by one person or a small group of people. Using layman's terms, Polipo keeps webpage information on your hard disk. When you revisit a webpage, polipo only downloads the information that has changed, thus saving bandwidth. Unlike Squid, it is very easy to configure and light on resources so you can use it...
LQ Newbie
Posted in Uncategorized
Views 203 Comments 0 arniekat is offline
Old

exGENT 64 bit (Gentoo) with Xfce4 and Lxqt using kernel 3.17.4-gentoo-exton

Posted 11-30-2014 at 11:58 AM by exton (Exton's Blog)
Updated 11-30-2014 at 12:26 PM by exton

NEWS 20141130
I’ve made yet a new version (20141130) of exGENT Live DVD. Now with Xfce4 and Lxqt (The next generation of the Lightweight Desktop Environment). It is for the 64 bit architecture. I call it exGENT 2015 Xfce4 Live DVD. It replaces version 20140212 of exGENT with Gnome. Version 141130 of exGENT uses kernel 3.17.4. (Latest stable kernel). The ISO file is of 1630 MB due to the fact that this version has a lot of packages preinstalled. Among them four different Web Browsers: Firefox,...
ExTiX Admin
Views 137 Comments 0 exton is offline

  



All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration