Go to advanced search

by nadir
Thu Nov 14, 2013 12:05 am
Forum: Debian
Topic: iptables fails to initialize
Replies: 4
Views: 2760

Re: iptables fails to initialize

Doing software support for a living is no argument.
For you 3 months might be ancient, for Debian it isn't.
It might be an idea to reconsider that opinion.

I for one don't care much for newer software. And i am pretty sure that support for iptables is not a question of being the latest and greatest.
by nadir
Wed Nov 13, 2013 8:00 pm
Forum: Debian
Topic: iptables fails to initialize
Replies: 4
Views: 2760

Re: iptables fails to initialize

I wouldn't call that very old. I also can't see the point in a debian subforum if the advice is to use another distribution. I could use raspbian, but am asking if i am able to solve the problem with the actual debian installation. To move all stuff installed there to the new installation is more th...
by nadir
Tue Nov 12, 2013 3:18 pm
Forum: Debian
Topic: iptables fails to initialize
Replies: 4
Views: 2760

iptables fails to initialize

she% iptables -L FATAL: Module ip_tables not found. iptables v1.4.14: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. she% she% uname -r 3.1.9+ she% uname -a Linux rp-server 3.1.9+ #90 Wed Apr 18 18:23:05 ...
by nadir
Tue Jun 18, 2013 7:05 pm
Forum: Beginners
Topic: Github help
Replies: 4
Views: 1049

Re: Github help

The above is rather about installing from github sources in general.
I found this:
http://www.screenlyapp.com/ose.html
which seems to have what you are looking for (installation instructions).
by nadir
Tue Jun 18, 2013 7:00 pm
Forum: Beginners
Topic: Github help
Replies: 4
Views: 1049

Re: Github help

Don't take my word for it, but in short you: download the zip file from github (or the tar.gz file) unpack it and rename it according to Debian's naming scheme change inside the unpacked directory create a debian/directory and edit it accordingly and finally build the package to install it as a deb-...
by nadir
Wed Jun 05, 2013 11:21 pm
Forum: Debian
Topic: no more sound
Replies: 1
Views: 1509

Re: no more sound

Trying to troubleshoot i wanted to use the backup-SD card. While unplugging the old SD-card i realized that it was set to "locked". Using the backup-SD card worked, but i haven't tried the other one yet.
by nadir
Wed Jun 05, 2013 6:35 pm
Forum: Debian
Topic: no more sound
Replies: 1
Views: 1509

no more sound

Usually i am using xmms2 to play music. If i do so i get no sound. I do xmms2 list and it lists the playlist correct. I do: xmms2 next and follow with xmms2 list, it is at the next song. I tried mocp instead, and it gives me this error Can't set audio parameters: Input output error Error message of ...
by nadir
Thu May 16, 2013 1:06 am
Forum: General programming discussion
Topic: How to commit with Git
Replies: 8
Views: 11529

Re: How to commit with Git

"git status" tells you which files have changed, which are new and which are not commited yet (like already said above) To commit you can use: git commit -m "some useful info about the actual commit" or git commit --all # or -a default text editor will open, and uncomment what needs to (i think, tha...
by nadir
Tue May 14, 2013 7:08 pm
Forum: Deutsch
Topic: Deutsch umstellen?
Replies: 2
Views: 10833

Re: Deutsch umstellen?

Wenn ich mich richtig erinnere: zum Terminal wechseln: str+alt+F2 (oder F3, oder F4 ...). falls ein display-manager (slim, lightdm, etc) läuft, diesen stoppen: /etc/init.d/lightdm stop dpkg-reconfigure locales zum Ende hin wird man gefragt, was die default locale sein soll (deutsch wählen). Keyboard...
by nadir
Mon May 13, 2013 4:15 pm
Forum: Deutsch
Topic: Nun hats auch mich erwischt
Replies: 9
Views: 2422

Re: Nun hats auch mich erwischt

port von ssh ändern port 40280 ssh2 nützt nichts, die probieren alle Portkombinationen durch... geht mir an meiner Firewall genauso. Gruß Efflicto Sicher nützt es was. Erstens werden alle script-kiddies abgeblockt, die die default Einstellung des Portscanners benützen (das ist schonmal ein Grosstei...
by nadir
Mon May 13, 2013 11:45 am
Forum: Deutsch
Topic: Einlesen von Befehlsausgaben in C
Replies: 3
Views: 836

Re: Einlesen von Befehlsausgaben in C

popen() Wenn ich mich richtig erinnere, dann ist das Grundprinzip ähnlich zu fopen(): FILE *fp; if ( (fp = fopen("ls", "r")) == NULL ) { exit(-1); }; ... fgets() oder readline() oder .... Das ist aber nur ein Schuss in's Blaue (Wenn der Schuss aber in's Schwarze treffen sollte, dann wäre es eine seh...
by nadir
Mon May 13, 2013 11:35 am
Forum: Deutsch
Topic: Nun hats auch mich erwischt
Replies: 9
Views: 2422

Re: Nun hats auch mich erwischt

port von ssh ändern
by nadir
Sat May 11, 2013 11:35 am
Forum: Raspbian
Topic: Weird git!
Replies: 4
Views: 1161

Re: Weird git!

Try
git clone http://github.com/raspberrypi/linux
instead

Inform the developers at the github issues page of the repo:
https://github.com/raspberrypi/linux/issues
by nadir
Sun May 05, 2013 4:22 pm
Forum: Raspbian
Topic: Read/Write the Ext4 partition from Windows
Replies: 41
Views: 36756

Re: Read/Write the Ext4 partition from Windows

I'm a little surprised that no one has suggested answering the original-question-as-posed, No one said: It's been ages i fooled with it (and back then ext4 was not existent): http://www.ubuntugeek.com/how-to-read-ext3ext4-linux-partition-from-windows-7.html I recall it to be a bit of pain (it might...
by nadir
Sat May 04, 2013 5:04 pm
Forum: Raspbian
Topic: Read/Write the Ext4 partition from Windows
Replies: 41
Views: 36756

Re: Read/Write the Ext4 partition from Windows

It's been ages i fooled with it (and back then ext4 was not existent):
http://www.ubuntugeek.com/how-to-read-e ... ows-7.html
I recall it to be a bit of pain (it might be others tried it and will say: nope, that doesn't work with ext4).
by nadir
Sat May 04, 2013 7:02 am
Forum: Raspbian
Topic: new minimal image
Replies: 18
Views: 11815

Re: new minimal image

Even for people like me, who want to use a gui, but not lxde and not all apps the other image comes with, it is more easy to use a minimal image and install what i want, instead of first removing everything i don't want. I tried to get used to openbox or lxde, but i really prefer fluxbox (I didn't t...
by nadir
Thu May 02, 2013 7:46 am
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

It just happens that the uninitialized tmp variable in make_head() has the current value of list. I don't understand what you mean with uninitialized variable tmp. tmp gets memory. tmp then gets values. - Mh. perhaps you mean make_tail. That is how the video does it: struct node *tmp; /* gets no me...
by nadir
Tue Apr 30, 2013 7:41 am
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

modern approach does it like this: use n as an argument to the function to find the node you want to delete. use a node *cur which will tell which node contains n, and a node *prev which is the node before/previous of cur. first find the node in a for loop if prev is NULL, cur contains n. just skip ...
by nadir
Tue Apr 30, 2013 7:00 am
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

Thanks. Yes, you are right. Doing it in a function instead of in main adds another layer of complexity (to me. I often succeed in main, then put it in a function and fail miserably). I will try your code. It helps a lot to train all kind of ways (and yes, i try to find the most easy or clear way, su...
by nadir
Tue Apr 30, 2013 6:52 am
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

Yes, i saw your code. But it only inserts one node (to the beginning and one to the end, one time). Sure that is less complicated. :-) Let me look again. I am using "C -a modern approach" (from there is the way to add to the beginning of the list and the loop to get user input) Adding to the end of ...
by nadir
Tue Apr 30, 2013 6:43 am
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

struct node *list, *head; list = head = NULL; /* list and head are NULL */ list = make_head(); /* list now points to the linked list created by make_head() */ head = list; /* list and head now point to the linked list created by make_head() */ list = make_tail(); /* list now points to the linked li...
by nadir
Tue Apr 30, 2013 6:37 am
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

Also, get_data() has a bug as well. All the nodes created in the for loop are lost! I don't think so: user$ ./a.out Creating the head of the list Enter x value: 1 add to end of list Go on? (y/n): y Enter x value: 2 Go on? (y/n): y Enter x value: 3 Go on? (y/n): y Enter x value: 4 Go on? (y/n): n ad...
by nadir
Mon Apr 29, 2013 6:17 pm
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

I wrote: added the further function create_node() (as i couldn't find a better way to get it running), corrected another error, and that was the other error. I am quite sure it needs to be: tmp->next = malloc(sizeof(struct node)); Ups, ah, i see, you mean tmp. My fault. Mhh.. it works, i think. Head...
by nadir
Sun Apr 28, 2013 12:32 pm
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

I think i figured it out. After i created the first part of the list, by adding to the end by the functions make_head() and make_tail(), i failed to link the new list created by get_data() with the "old" list, already created. I inserted that link to the head of the old list into get_data(): struct ...
by nadir
Sun Apr 28, 2013 8:24 am
Forum: C/C++
Topic: insert beginning of linked list
Replies: 22
Views: 2882

Re: insert beginning of linked list

Can't quite figure out your code, but a singly link lists require a pointer to the first item in the list stored separately to the list (in its simplest form). When you insert at the beginning, you new node must take the value of this pointer and put it in its next ptr, then you update the start of...

Go to advanced search